home *** CD-ROM | disk | FTP | other *** search
- E! for Windows - Technical Note #016
- ***************************************************************
- Syntax Highlighting - Specifying classes in regular expressions
- ***************************************************************
-
- When specifying a regular expression as a parameter for one of the
- definition statements in an HDF file, you should take care of the
- following:
-
- 1. The < and % characters at the beginning of the expression or > and $
- at the end of the expression are ignored. When working for the Syntax
- Highlighting process, the regular expression parser ignores the string
- context and only consider the current token. Thus there is no such things
- like an "End of Line" or a "Beginning of Line". These special characters
- are ignored in that case.
-
- Example:
-
- Const <%[0-9a-z_]#
-
- is the same as
-
- Const %[0-9a-z_]#
-
-
- 2. When specifying a class with ranges, you should define uppercase and
- lowercase ranges only when the language is case sensitive. Otherwise
- specify only lowercase or uppercase ranges (which is the same).
-
- Examples:
-
- The following statements are correct:
-
- Case
- Const [0-9a-zA-Z]#[?%@$]
-
- This one is not correct if the Case statement is not used:
-
- Const [0-9a-zA-Z]#[?%@$]
-
- Use this one instead:
-
- Const [0-9a-z]#[?%@$]
-
- Failing to do so will cause the parser not to function correctly.
-
- THESE REMARKS DO NOT APPLY TO REGULAR EXPRESSIONS USED IN THE SEARCH
- DIALOG BOX OF E!.
-
- Patrick Philippot
- 12/30/94
-